<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>无标题文档</title>
		<script>
				function del(){
					if(window.confirm("确认删除客户交往信息?")){
						alert("客户交往记录删除成功!");
						return true;
					}
					else{
						return false;
					}
				}
		</script>
		<script type="text/javascript"
			src="${pageContext.request.contextPath}/js/pageCommon.js"></script>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/style/pageCommon.css"
			type="text/css"></link>
	</head>

	<body>
		<form
			action="${pageContext.request.contextPath}/SalChance_initSalChance.action"
			method="post">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td height="30"
						background="${pageContext.request.contextPath}/images/tab_05.gif">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="12" height="30">
									<img src="${pageContext.request.contextPath}/images/tab_03.gif"
										width="12" height="30" />
								</td>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="46%" valign="middle">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="5%">
															<div align="center">
																<img
																	src="${pageContext.request.contextPath}/images/tb.gif"
																	width="16" height="16" />
															</div>
														</td>
														<td width="95%" class="STYLE1">
															<span class="STYLE3">你当前的位置</span>：[客户信息管理]-[客户信息]-[交往记录]
														</td>
													</tr>
												</table>
											</td>
											<td width="54%">
												<table border="0" align="right" cellpadding="0"
													cellspacing="0">
													<tr>
													<td width="52">
															<table width="88%" border="0" cellpadding="0"
																cellspacing="0">
																<tr>
																	<td class="STYLE1">
																		<div align="center">
																			<img
																				src="${pageContext.request.contextPath}/images/22.gif"
																				width="14" height="14" />
																		</div>
																	</td>
																	<td class="STYLE1">
																		<div align="center">
																			<a href="${pageContext.request.contextPath}/pages/~cust/activities_add.jsp?custId=${requestScope.custBean.custId}">新建</a>
																		</div>
																	</td>
																</tr>
															</table>
														</td>
														<td width="60">
															<table width="90%" border="0" cellpadding="0"
																cellspacing="0">
																<tr>
																	<td class="STYLE1">
																		<div align="center">
																			<img
																				src="${pageContext.request.contextPath}/images/pic25.gif"
																				width="14" height="14" />
																		</div>
																	</td>
																	<td class="STYLE1">
																		<div align="center">
																			<a
																				href="${pageContext.request.contextPath}/Customer_getAllCustomer.action">返回</a>
																		</div>
																	</td>
																</tr>
															</table>
														</td>
														
														<td width="52">
															<table width="88%" border="0" cellpadding="0"
																cellspacing="0">
																<tr>
																	<td class="STYLE1">
																		<div align="center">
																			<img
																				src="${pageContext.request.contextPath}/images/11.gif"
																				width="14" height="14" />
																		</div>
																	</td>
																	<td class="STYLE1">
																		<div align="center">
																			帮助
																		</div>
																	</td>
																</tr>
															</table>
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="16">
									<img src="${pageContext.request.contextPath}/images/tab_07.gif"
										width="16" height="30" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="8"
									background="${pageContext.request.contextPath}/images/tab_12.gif">
									&nbsp;
								</td>
								<td>
									<table width="100%" border="0" cellpadding="0" cellspacing="1"
										bgcolor="b5d6e6" onmouseover="changeto()"
										onmouseout="changeback()">
										<tr>
											<td width="12%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">客户编号</span>
												</div>
											</td>
											<td width="12%" height="22" bgcolor="#FFFFFF">
												<label>${requestScope.custBean.custNo}</label>
											</td>
											<td width="12%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">客户名称</span>
												</div>
											</td>
											<td width="12%" height="22" bgcolor="#FFFFFF">
												<label>${requestScope.custBean.custName}</label>
											</td>
										</tr>
									</table>
								</td>
								<td width="8"
									background="${pageContext.request.contextPath}/images/tab_15.gif">
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td><br/></td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="8"
									background="${pageContext.request.contextPath}/images/tab_12.gif">
									&nbsp;
								</td>
								<td>
									<table width="100%" border="0" cellpadding="0" cellspacing="1"
										bgcolor="b5d6e6" onmouseover="changeto()"
										onmouseout="changeback()">
										<tr>
											<td width="20%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">时间</span>
												</div>
											</td>
											<td width="12%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">地点</span>
												</div>
											</td>
											<td width="20%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">概要</span>
												</div>
											</td>
											<td width="20%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">详细信息</span>
												</div>
											</td>
											<td width="20%" height="22" bgcolor="#FFFFFF">
												<div align="center">
													<span class="STYLE1">备注</span>
												</div>
											</td>
											<td width="10%" height="22" bgcolor="#FFFFFF" class="STYLE1">
												<div align="center">
													操作
												</div>
											</td>
										</tr>

										<c:forEach var="atv"
											items="${requestScope.custBean.atvList}">
											<tr>
												<td height="20" bgcolor="#FFFFFF">
													<div align="center" class="STYLE1">
														<div align="center">
															${atv.atvDate}
														</div>
													</div>
												</td>
												<td height="20" bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE1">${atv.atvPlace}</span>
													</div>
												</td>
												<td height="20" bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE1">${atv.atvTitle}</span>
													</div>
												</td>
												<td height="20" bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE1">${atv.atvDesc} </span>
													</div>
												</td>
												<td height="20" bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE1">${atv.atvRemark} </span>
													</div>
												</td>
												<td bgcolor="#FFFFFF">
													<div align="center">
														<span class="STYLE1">
															<a href="${pageContext.request.contextPath}/Customer_findActivityByatvId.action?atvId=${atv.atvId}&custId=${requestScope.custBean.custId}">
																<img src="${pageContext.request.contextPath}/images/edt.gif" title="编辑">
															</a>
															<a href="${pageContext.request.contextPath}/Customer_delActivityByCustId.action?custId=${requestScope.custBean.custId}&atvId=${atv.atvId}" onclick="return del()">
																<img src="${pageContext.request.contextPath}/images/del.gif" title="删除">
															</a>
														</span>
													</div>
												</td>
											</tr>
										</c:forEach>
									</table>
								</td>
								<td width="8"
									background="${pageContext.request.contextPath}/images/tab_15.gif">
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td height="35"
						background="${pageContext.request.contextPath}/images/tab_19.gif">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td width="12" height="35">
									<img src="${pageContext.request.contextPath}/images/tab_18.gif"
										width="12" height="35" />
								</td>
								<td>
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td class="STYLE4">
												&nbsp;&nbsp;共有 120 条记录，当前第 1/10 页
											</td>
											<td>
												<table border="0" align="right" cellpadding="0"
													cellspacing="0">
													<tr>
														<td width="40">
															<img
																src="${pageContext.request.contextPath}/images/first.gif"
																width="37" height="15" />
														</td>
														<td width="45">
															<img
																src="${pageContext.request.contextPath}/images/up.gif"
																width="43" height="15" />
														</td>
														<td width="45">
															<img
																src="${pageContext.request.contextPath}/images/next.gif"
																width="43" height="15" />
														</td>
														<td width="40">
															<img
																src="${pageContext.request.contextPath}/images/last.gif"
																width="37" height="15" />
														</td>
														<td width="100">
															<div align="center">
																<span class="STYLE1">转到第 <input name="textfield"
																		type="text" size="4"
																		style="height: 12px; width: 20px; border: 1px solid #999999;" />
																	页 </span>
															</div>
														</td>
														<td width="40">
															<img
																src="${pageContext.request.contextPath}/images/go.gif"
																width="37" height="15" />
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="16">
									<img src="${pageContext.request.contextPath}/images/tab_20.gif"
										width="16" height="35" />
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>